package com.zhongyi.service.impl;

import com.zhongyi.dao.AccountDao;
import com.zhongyi.domian.Account;
import com.zhongyi.service.IAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("accountService")
public class AccountServiceImpl implements IAccountService {

    @Autowired
    private AccountDao accountDao;

    public Account findAccountById(Integer accountId) {
        return accountDao.findAccountById(accountId);
    }

    public Account findAccountByName(String accountName) {
        return accountDao.findAccountByName(accountName);
    }

    public void updateAccount(Account account) {
        accountDao.updateAccount(account);
    }
}
